package com.xliang.spider.version03.quartz;

import com.xliang.spider.version03.quartz.base.AbstractJobService;
import com.xliang.spider.version03.service.SpiderScanCourseService;
import com.xliang.spider.version03.service.impl.SpiderScanCourseServiceImpl;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * ${DESCRIPTION}
 *
 * @author xiongl
 * @create 2016-06-13 16:46
 */
public class DownCourseJob extends AbstractJobService
{
    @Resource
    private SpiderScanCourseService spiderScanCourseService;
    
    @Override
    public String getDescription()
    {
        return "定时任务：下载极客学院视频";
    }
    
    @Override
    public void doExecute()
        throws Exception
    {
        spiderScanCourseService.downLoadCourse("D:\\download\\极客学院\\");
    }
}
